var Wall = function (x, y, width, height, imageOptions) {
    Wall.base.call(this, x, y, width, height, imageOptions);
    this.render = function (drawEngine) {
        drawEngine.render(this.image, 0, 0, this.width, this.height, this.x, this.y);
    };
},
Forest = function (x, y, width, height, imageOptions) {
    Forest.base.call(this, x, y, width, height, imageOptions);
    this.render = function (drawEngine) {
        drawEngine.render(this.image, 0, 0, this.width, this.height, this.x, this.y);
    };
}
Water = function (x, y, width, height, imageOptions) {
    Water.base.call(this, x, y, width, height, imageOptions);
    this.health = 10000000;
    this.time = 0;
    this.frameTime = imageOptions.frameTime;
    this.frameCount = imageOptions.frameCount;
    this.render = function (drawEngine, dt) {
        var frameIndex = Math.round(this.time / this.frameTime);
        if (frameIndex >= this.frameCount) {
            this.time = 0;
            frameIndex = 0;
        }
        else {
            this.time = this.time + dt * 1000;
        }
        drawEngine.render(this.image, frameIndex * this.image.width, 0, this.image.width, this.image.height, this.x, this.y, this.width, this.height);
    };
};

epam.tankBattles.common.extend(Wall, BaseGameObject);
epam.tankBattles.common.extend(Water, BaseGameObject);
epam.tankBattles.common.extend(Forest, BaseGameObject);
